home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18236 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  53 lines

  1. Path: mail2news.demon.co.uk!devmaccn.demon.co.uk
  2. From: Alan Griffiths <aGriffiths@ma.ccngroup.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: VC++ 4.0 and C++ syntax
  5. Date: Fri, 19 Apr 1996 15:50:31 GMT
  6. Organization: CCN Market Analysis
  7. Distribution: world
  8. Message-ID: <890795677wnr@ma.ccngroup.com>
  9. References: <317290A7.57C0@spr.com>
  10. Reply-To: aGriffiths@ma.ccngroup.com
  11. X-NNTP-Posting-Host: devmaccn.demon.co.uk
  12. X-Broken-Date: Friday, Apr 19, 1996 15.50.31 GMT
  13. X-Newsreader: Newswin Alpha 0.6
  14. X-Mail2News-Path: devmaccn.demon.co.uk
  15.  
  16. In article: <317290A7.57C0@spr.com>  sudip@spr.com writes:
  17. > Greetings,
  18. > VC++ 4.0 allows the following syntax to obtain the address of
  19. > a class member function
  20. > CObArray Ob;
  21. > Ob.SetSize(1);
  22. > if (0 == Ob.GetSize ) // compiles and links
  23. > {
  24. >   return;
  25. > }
  26.  
  27. If you think that's silly try giving it:
  28.  
  29. int main()
  30. {
  31.     int i = 0;
  32.  
  33.     if (i->i())
  34.        i++;
  35.  
  36.     return i;
  37. }
  38.  
  39. PS
  40.  
  41. You are right, M$ are wrong.
  42.  
  43. __
  44. Alan Griffiths               | Also editor of: The ISDF Newsletter 
  45. Senior Systems Consultant,   | (An Association of C and C++ Users publication) 
  46. CCN Group Limited.           | (ISDF editor  : isdf@octopull.demon.co.uk) 
  47. (agriffiths@ma.ccngroup.com) | (For ACCU see : http://bach.cis.temple.edu/accu)
  48.  
  49.